﻿function startWith(source, part) {
    if (source.indexOf(part) > -1) {
        return true;
    }
    return false;
}
function onCreate(){
    frame.getWidget('S1A1P1').runAnimtion(new AnimationSequence(new AnimationFly(200, 200, 0.5), new AnimationFlyTo(0, 0, 0.3)));
}